package com.fyt.spring.cloud.project.controller;

import com.fyt.spring.cloud.PO.GardenEquipmentPO;
import com.fyt.spring.cloud.project.api.GardenEquipmentApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class GardenEquipmentController {
    @Autowired
    private GardenEquipmentApi gardenEquipmentApi;

    @GetMapping(value = "list")
    List<GardenEquipmentPO> list(){
        return gardenEquipmentApi.list();
    }
}
